package com.yn.iotxiao.sql.services;

import com.yn.iotxiao.sql.entity.User.User;
import com.yn.iotxiao.sql.mapper.UserMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UserServiceImpl implements UserService{
    @Autowired
    UserMapper mapper;


    @Override
    public User getWithLoginId(String loginId) {
        return mapper.getWithLoginId(loginId);
    }

    @Override
    public User getWithUid(String uid) {
        return mapper.getWithUid(uid);
    }

    @Override
    public int insert(User user) {
        return mapper.insert(user);
    }

    @Override
    public int batchInsert(List<User> list) {
        return mapper.batchInsert(list);
    }

    @Override
    public int delete(String uid) {
        return mapper.delete(uid);
    }
}
